package com.guigu.limeng.service.impl;

import com.guigu.limeng.mapper.MdesignproceduredetailsMapper;
import com.guigu.limeng.pojo.Mdesignproceduredetails;
import com.guigu.limeng.service.MdesignproceduredetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MdesignproceduredetailsServiceImpl implements MdesignproceduredetailsService {

    @Autowired
    MdesignproceduredetailsMapper mdesignproceduredetailsMapper;


    @Override
    public List<Mdesignproceduredetails> MdesignproceduredetailsWZY_AddCha(int id) {
        return mdesignproceduredetailsMapper.MdesignproceduredetailsWZY_AddCha(id);
    }

    @Override
    public int AddMdeMingXi(Mdesignproceduredetails mdesignproceduredetails) {
        return mdesignproceduredetailsMapper.AddMdeMingXi(mdesignproceduredetails);
    }

    @Override
    public List<Mdesignproceduredetails> ChaById(Integer productId) {
        return mdesignproceduredetailsMapper.ChaById(productId);
    }

    @Override
    public int delById(int id) {
        return mdesignproceduredetailsMapper.delById(id);
    }

    @Override
    public int updateByMingXi(Mdesignproceduredetails mdesignproceduredetails) {
        return mdesignproceduredetailsMapper.updateByPrimaryKeySelective(mdesignproceduredetails);
    }

    @Override
    public List<Mdesignproceduredetails> limeng_UpDateCha_Mdesignproceduredetails(Integer id) {
        return mdesignproceduredetailsMapper.ChaById(id);
    }

}
